package com.zhiyume.api.util;

import com.zhiyume.util.TypeConstants;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by wang on 17/10/20.
 */
public enum ApiClassifyEnum {

    TEL(0, "电视"),
    MOVIE(1, "电影"),
    NET(2,"网剧"),
    ACTOR(3,"明星"),
    VARIETY(4,"综艺"),
    FASHION(5,"时尚"),
    MUSIC(6,"音乐"),
    RECOMMEND(99, "推荐");

    private String name ;
    private int index ;

    ApiClassifyEnum(int index, String name ){
        this.name = name ;
        this.index = index ;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }

    public static List<String> getNavList(){
        return Arrays.asList(TypeConstants.navArr);
    }

    public static void main(String[] args){
        System.out.println(ApiClassifyEnum.getNavList());
    }
}